package com.example.demo.thread.Java线程间的通信;

public class joinDemo {

    static class t1 implements Runnable {
        @Override
        public void run() {
            try {
                Thread.sleep(10000);
                System.out.println("000000000000000000");
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }

    public static void main(String[] args) throws InterruptedException {
        Thread thread1 = new Thread(new t1());
        thread1.start();
        thread1.join();
        System.out.println("11111111111111111");

    }
}
